﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mainframe
{
    internal class Mainframe
    {
        private Memory memory;
        private CPU cpu;
        private HardDisk hardDisk;
        private OS os;

        public Mainframe()
        {
            memory = new Memory();
            cpu = new CPU();
            hardDisk = new HardDisk();
            os = new OS();
        }

        public void On()
        {
            Console.WriteLine("Mainframe starting...");
            memory.Check();
            cpu.Run();
            hardDisk.Read();
            os.Load();
            Console.WriteLine("Mainframe started successfully.");
        }
    }
}
